
const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    onEnable () {
        cc.director.getPhysicsManager().enabled=true;
    }

    onDisable(){
        cc.director.getPhysicsManager().enabled=false;
    }

    // update (dt) {}
}
